package com.ruoyi.project.jiaqin.quotationlikes.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.jiaqin.quotationlikes.mapper.MemberQuotationLikesMapper;
import com.ruoyi.project.jiaqin.quotationlikes.domain.MemberQuotationLikes;
import com.ruoyi.project.jiaqin.quotationlikes.service.IMemberQuotationLikesService;
import com.ruoyi.common.utils.text.Convert;

/**
 * 用户点赞行情Service业务层处理
 *
 * @author admin
 * @date 2021-02-02
 */
@Service
public class MemberQuotationLikesServiceImpl implements IMemberQuotationLikesService
{
    @Autowired
    private MemberQuotationLikesMapper memberQuotationLikesMapper;

    /**
     * 查询用户点赞行情
     *
     * @param memberId 用户点赞行情ID
     * @return 用户点赞行情
     */
    @Override
    public MemberQuotationLikes selectMemberQuotationLikesById(String memberId,String quotationId)
    {
        return memberQuotationLikesMapper.selectMemberQuotationLikesById(memberId,quotationId);
    }

    /**
     * 查询用户点赞行情列表
     *
     * @param memberQuotationLikes 用户点赞行情
     * @return 用户点赞行情
     */
    @Override
    public List<MemberQuotationLikes> selectMemberQuotationLikesList(MemberQuotationLikes memberQuotationLikes)
    {
        return memberQuotationLikesMapper.selectMemberQuotationLikesList(memberQuotationLikes);
    }

    /**
     * 新增用户点赞行情
     *
     * @param memberQuotationLikes 用户点赞行情
     * @return 结果
     */
    @Override
    public int insertMemberQuotationLikes(MemberQuotationLikes memberQuotationLikes)
    {
        return memberQuotationLikesMapper.insertMemberQuotationLikes(memberQuotationLikes);
    }

    /**
     * 修改用户点赞行情
     *
     * @param memberQuotationLikes 用户点赞行情
     * @return 结果
     */
    @Override
    public int updateMemberQuotationLikes(MemberQuotationLikes memberQuotationLikes)
    {
        return memberQuotationLikesMapper.updateMemberQuotationLikes(memberQuotationLikes);
    }

    /**
     * 删除用户点赞行情对象
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteMemberQuotationLikesByIds(String ids)
    {
        return memberQuotationLikesMapper.deleteMemberQuotationLikesByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除用户点赞行情信息
     *
     * @param memberId 用户点赞行情ID
     * @return 结果
     */
    @Override
    public int deleteMemberQuotationLikesById(String id)
    {
        return memberQuotationLikesMapper.deleteMemberQuotationLikesById(id);
    }
}
